package com.henghai.zhenxuan.ui.page.adapter;

import android.content.Context;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.DiffUtil;
import androidx.recyclerview.widget.RecyclerView;

import com.henghai.zhenxuan.data.bean.NoticeBean;
import com.henghai.zhenxuan.databinding.AdapterNoticeItemBinding;
import com.kunminx.binding_recyclerview.adapter.SimpleDataBindingAdapter;

public class NoticeListAdapter extends SimpleDataBindingAdapter<NoticeBean, AdapterNoticeItemBinding> {


    public NoticeListAdapter(Context context, @NonNull DiffUtil.ItemCallback<NoticeBean> diffCallback) {
        super(context, com.henghai.zhenxuan.R.layout.adapter_notice_item, diffCallback);
    }

    @Override
    protected void onBindItem(AdapterNoticeItemBinding adapterTaskItemBinding, NoticeBean rowsBean, RecyclerView.ViewHolder viewHolder) {
        adapterTaskItemBinding.setVm(rowsBean);
    }
}
